#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QDialog>
#include <QWidget>
#include <QPushButton>
#include <QLabel>

#include "model/data.h"
using model::UserInfo;

// 自定义控件：头像 + 昵称
class AvatarItem : public QWidget
{
    Q_OBJECT
public:
    AvatarItem(const QIcon& avatar, const QString& nickname);

private:
    QPushButton* user_avatar;
    QLabel* user_nickname;
};

class SessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    SessionDetailWidget(QWidget* parent, const UserInfo& userinfo);

    void DeleteFriend();

private:
    QPushButton* delete_friend_btn;
    UserInfo userinfo;
};

#endif // SESSIONDETAILWIDGET_H
